package ui;

import java.text.SimpleDateFormat;
import java.util.Date;


public class CommmonUtils {

    public static void main(String[] args) {
        System.out.println(getCurrentTime());
    }

    public static final String STYLE="yyyy年MM月dd日 HH:mm:ss E a";

    public static final SimpleDateFormat sdf=new SimpleDateFormat(STYLE);

    public static String getCurrentTime(){
        //格式化当前日期
        return sdf.format(new Date());
    }


    public static String getFileName(){
        SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddHHmmssSSS");
        return sdf.format(new Date());
    }

}
